package cn.com.java.controller;

import cn.com.java.core.HttpRes;
import cn.com.java.service.SysLogService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 日志记录 前端控制器
 * </p>
 *
 * @author ***
 * @since 2024-01-05
 */
@RestController
@RequestMapping("/sysLog")
@RequiredArgsConstructor
public class SysLogController {

    private final SysLogService sysLogService;

    @GetMapping("list")
    public HttpRes getList(){
        return HttpRes.OK(sysLogService.list());
    }

}
